package com.example.hanfu_backend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("cart")
public class Cart {
    @TableId(value = "cart_id",type = IdType.AUTO)
    private Integer cartId;
    @TableField(value = "customer_id")
    private Integer customerId; // 顾客编号
    @TableField(value = "hanfu_id")
    private Integer hanfuId; // 汉服编号
    @TableField(value = "cart_sum")
    private Integer cartSum; // 商品数量
    @TableField(value = "cart_price")
    private Float cartPrice; // 总价
    @TableField(value = "cart_size")
    private String cartSize; // 尺码
}
